<p>
  Selection: {{ selection?.length ? selection[0].label : 'none' }}
  <a *ngIf="selection?.length" (click)="clearSelection()">Clear</a>
</p>

<div class="tree-container">
  <lv-tree #tree [lvData]="data" lvSelectionMode="single" [(lvSelection)]="selection" (lvSelectionChange)="change($event)"></lv-tree>
</div>
